package com.lhj.xxsc.search.feign;

import com.xxsc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * @author 罗惠江
 * @version 1.0
 * @email 1511619294@qq.com
 * @date 2020/12/19 17:54
 */
@FeignClient("xxsc-product")
public interface ProductFeignService {
	/**
	 * @param attrId
	 * @return 商品的属性信息
	 */
	@GetMapping("product/attr/info/{attrId}")
	R attrInfo(@PathVariable("attrId") Long attrId);

	/**
	 * @param brandIds
	 * @return 商品的品牌信息
	 */
	@GetMapping("product/brand/brandinfos")
	R brandinfos(@RequestParam("brandIds") List<Long> brandIds);
}
